package com.pai.vo;

/**
 * @author amu_1115@126.com
 * @version 1.0
 */
public class ApiResult {
    private String code = "00000";
    private String message;
    private Object data;
    public ApiResult() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public void setError(){
        this.code = "0001";
        this.message = "未知异常";
    }
    public void setError(String msg){
        this.code = "0001";
        this.message = msg;
    }
}
